package com.erp.erp_mask.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
import lombok.Data;

/**
 * 
 * @TableName t_process
 */
@TableName(value ="t_process")
@Data
public class TProcess implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer proId;

    /**
     * 
     */
    private String processNumber;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonSerialize(using = LocalDateSerializer.class)
    @JsonDeserialize(using = LocalDateDeserializer.class)
    private LocalDate orderDate;

    /**
     * 
     */
    private String manuId;

    /**
     * 
     */
    private Integer bomId;

    /**
     * 
     */
    private Integer goodsId;

    /**
     * 
     */
    private String goodsName;

    /**
     * 
     */
    private String spec;

    /**
     * 
     */
    private String units;

    /**
     * 
     */
    private Integer proNumber;

    /**
     * 
     */
    private String succedNumber;

    /**
     * 
     */
    private Integer parId;

    /**
     * 
     */
    private Integer stateId;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonSerialize(using = LocalDateSerializer.class)
    @JsonDeserialize(using = LocalDateDeserializer.class)
    private LocalDate opendate;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonSerialize(using = LocalDateSerializer.class)
    @JsonDeserialize(using = LocalDateDeserializer.class)
    private LocalDate finishdate;

    /**
     * 
     */
    private String proplant;


    @TableField(exist = false)
    private Integer orderId;
    @TableField(exist = false)
    private String orderName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}